package com.component.enumitem;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Classname ModelComponentEnum
 * @Description TODO
 * @Date 2023/10/23 15:05
 * @Created by XiongXiong
 * @Author: X.I.O
 *
 * 模型组件
 */
public enum  ModelComponentEnum {

    INPUT_NUM("输入框(数值)","input_num",0),
    INPUT_TEXT("输入框(文本)","input_text",0),
    FORMULA_INPUT("公式","formula",""),
    DATE_TIME_INPUT("日期时间","datetime",new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())),
    DATE_INPUT("日期","date",new SimpleDateFormat("yyyy-MM-dd")),
    SELECT_TEXT("下拉框","select","");


    private String componentName;

    private String componentType;

    private Object defalutValue;

    public Object getDefalutValue() {
        return defalutValue;
    }

    public void setDefalutValue(Object defalutValue) {
        this.defalutValue = defalutValue;
    }

    public String getComponentName() {
        return componentName;
    }

    public void setComponentName(String componentName) {
        this.componentName = componentName;
    }

    public String getComponentType() {
        return componentType;
    }

    public void setComponentType(String componentType) {
        this.componentType = componentType;
    }

    ModelComponentEnum(String componentName, String componentType,Object defalutValue) {
        this.componentName = componentName;
        this.componentType = componentType;
        this.defalutValue = defalutValue;
    }
}
